<?php
mysql_connect("127.0.0.1","root","sd2013");
mysql_select_db("mathRomp");

//Create new game in GAME database
$q=mysql_query("SELECT `turn` FROM Game WHERE gameId = ".$_REQUEST['gameId']."");
while($e=mysql_fetch_assoc($q)){
  $output[]=$e;
}
print(json_encode($output));
?>